#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
char a[33];
int main() {
    int n;
    while (scanf("%d", &n) != EOF)
    {
        int left = 0;
        int right = n - 1;
        while (left <= right) {
            for (int i = 0; i < n; i++)
                if (i == left || i == right)printf("*");
                else printf(" ");
            printf("\n");
            left++;
            right--;
        }
        while (left < n) {
            for (int i = 0; i < n; i++)
                if (i == left || i == right)printf("*");
                else printf(" ");
            printf("\n");
            left++;
            right--;
        }
    }
    return 0;
}